const router = [
  {
    path: '/',
    component:() => import('~/layouts/mainHome/index.vue').then(r => r.default || r),
    children:[
      {
        path: '/',
        name:'Home',
        component:() => import('~/pages/Home/index.vue').then(r => r.default || r),
      }
    ]
  },



  {
    name: 'default',
    path: '/default',
    component: () => import('~/pages/default.vue').then(r => r.default || r) ,
  },
  {
    name: 'index ',
    path: '/index',
    component: () => import('~/pages/index.vue').then(r => r.default || r) ,
  },
  {
    name: 'login',
    path: '/login',
    component: () => import( '~/pages/login/index').then(r => r.default || r),
    // meta: {
    //   middleware: ['auth'],
    // },
    children:[
      {
        name: 'login-ddd',
        path: '/login/ddd',
        component: () => import( '~/pages/welcome').then(r => r.default || r),
        meta: {
          title: '登录s',
        },
      },
    ]
  },
  {
    name: 'welcome',
    path: '/welcome',
    component: () => import( '~/pages/welcome').then(r => r.default || r),

    children:[
      {
        name: 'login-ddd',
        path: '/login/ddd',
        component: () => import( '~/pages/welcome').then(r => r.default || r),
        meta: {
          
          title: '登录s',
        },
      },
    ]
  },
  {
    path: '/:pathMatch(.*)*',
    name: 'not-found',
    component:() => import('~/pages/404').then(r => r.default || r),
    meta: {
      title: '页面不存在',
    },
  },
]
export default router;